//  This is a flavor file. Duplicate it and edit it to create your own flavor. Read instructions carefully.
//  Single-line comments, starting with '//' will not be included in your final CSS file. Multiline comments,
//  structured like the flavor description below, will be included in your final CSS file.
/*
  Flavor name: Default (mini-default)
  Author: Angelos Chalaris (chalarangelo@gmail.com)
  Maintainers: Angelos Chalaris
  mini.css version: v3.0.0-alpha.2
*/

$fore-color-var:                '--f-col';
$secondary-fore-color-var:      '--f-col2';
$back-color-var:                '--b-col';
$secondary-back-color-var:      '--b-col2';
$blockquote-color-var:          '--blq-col';
$pre-color-var:                 '--pre-col';
$border-color-var:              '--br-col';
$secondary-border-color-var:    '--br-col2';
$heading-ratio-var:             '--h-ratio';
$universal-margin-var:          '--u-m';
$universal-padding-var:         '--u-p';
$universal-border-radius-var:   '--u-br-r';
$universal-box-shadow-var:      '--u-bx-shd';
$a-link-color-var:              '--a-l-col';
$a-visited-color-var:           '--a-v-col';

$code-font-size:  0.8125em;

@import 'core';

$grid-container-name:          'container';
$grid-row-name:                'row';
$grid-row-parent-layout-prefix:'cols';
$grid-column-prefix:           'col';
$grid-column-offset-suffix:    'o';
$grid-order-normal-suffix:     'n';
$grid-order-first-suffix:      'f';
$grid-order-last-suffix:       'l';
$grid-small-prefix:            'sm';
$grid-medium-prefix:           'md';
$grid-large-prefix:            'lg';

$card-fore-color-var:          '--cd-f-col';
$card-back-color-var:          '--cd-b-col';
$card-border-color-var:        '--cd-br-col';

$_include-parent-layout: false;

@import 'layout';

/*
  Custom elements for card elements.
*/

$card-fluid-name:              'fluid';            // Class name for fluid cards.
$card-fluid-width:             100%;               // Width for fluid cards.
@include make-card-alt-size ($card-fluid-name, $card-fluid-width);

$card-section-double-padded-name:    'double-padded';   // Class name for card double-padded section variant.
$card-section-double-padded-padding:  calc(1.5 * var(#{$universal-padding-var}));  // Padding for card sectiondouble-padded section variant.
@include make-card-section-alt-style($card-section-double-padded-name, $card-section-double-padded-padding);

.#{$card-name} {
  box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(0, 32, 64, 0.1);
}

.#{$card-name} > h3.#{$card-section-name}.#{$card-section-double-padded-name} {
  padding: calc(3 * var(#{$universal-padding-var}));
}

.#{$card-name} > .#{$card-section-name}.#{$card-section-double-padded-name} > p {
  margin: var(#{$universal-margin-var}) calc(var(#{$universal-margin-var}) / 2);
}

.#{$card-name} + .#{$card-name} {
  margin-top: calc(5 * var(#{$universal-margin-var}));
}

$form-back-color-var:         '--frm-b-col';
$form-fore-color-var:         '--frm-f-col';
$form-border-color-var:       '--frm-br-col';
$input-back-color-var:        '--in-b-col';
$input-fore-color-var:        '--in-f-col';
$input-border-color-var:      '--in-br-col';
$input-focus-color-var:       '--in-fc-col';
$input-invalid-color-var:     '--in-inv-col';
$button-back-color-var:       '--btn-b-col';
$button-hover-back-color-var: '--btn-h-b-col';
$button-fore-color-var:       '--btn-f-col';
$button-border-color-var:       '--btn-br-col';
$button-hover-border-color-var: '--btn-h-br-col';
$button-group-border-color-var: '--btn-grp-br-col';


$_include-fluid-input-group: false;

@import 'input_control';

/*
  Custom elements for forms and input elements.
*/
$button-primary-name:            'primary';   // Class name for primary button color variant.
$button-primary-back-color:      #1976d2;     // Background color for primary button color variant.
$button-primary-hover-back-color:#1565c0;     // Background color for primary button color variant (hover).
$button-primary-fore-color:      #f8f8f8;     // Text color for primary button color variant.
@include make-button-alt-color ($button-primary-name, $button-primary-back-color, $button-primary-hover-back-color, $button-primary-fore-color);


$header-fore-color-var:          '--hd-f-col';
$header-back-color-var:          '--hd-b-col';
$header-hover-back-color-var:    '--hd-hv-b-col';
$header-border-color-var:        '--hd-br-col';
$nav-fore-color-var:             '--nv-f-col';
$nav-back-color-var:             '--nv-b-col';
$nav-hover-back-color-var:       '--nv-hv-b-col';
$nav-border-color-var:           '--nv-br-col';
$nav-link-color-var:             '--nv-ln-col';
$footer-fore-color-var:          '--ft-f-col';
$footer-back-color-var:          '--ft-b-col';
$footer-border-color-var:        '--ft-br-col';
$footer-link-color-var:          '--ft-ln-col';
$drawer-back-color-var:          '--dr-b-col';
$drawer-border-color-var:        '--dr-br-col';
$drawer-hover-back-color-var:    '--dr-hv-b-col';
$drawer-close-color-var:         '--dr-cl-col';


$nav-sublink-depth:    1;

$_drawer-right: false;

@import 'navigation';

$mark-back-color: #424242;
$mark-font-size: 0.5em;

$toast-back-color:       #212121;

$mark-back-color-var:         '--mrk-b-col';
$mark-fore-color-var:         '--mrk-f-col';
$toast-back-color-var:        '--tst-b-col';
$toast-fore-color-var:        '--tst-f-col';
$tooltip-back-color-var:      '--tltp-b-col';
$tooltip-fore-color-var:      '--tltp-f-col';
$modal-overlay-color-var:     '--mdl-ov-col';
$modal-close-color-var:       '--mdl-cl-col';
$modal-close-hover-back-color-var: '--mdl-cl-h-col';
$collapse-label-back-color-var:    '--clps-lbl-b-col';
$collapse-label-fore-color-var:    '--clps-lbl-f-col';
$collapse-label-hover-back-color-var:    '--clps-lbl-h-b-col';
$collapse-selected-label-back-color-var: '--clps-sel-lbl-b-col';
$collapse-border-color-var:        '--clps-br-col';
$collapse-content-back-color-var:  '--clps-cnt-b-col';
$collapse-selected-label-border-color-var: '--clps-sel-lbl-br-col';

$_include-modal: false;
$_include-tooltip: false;
$_include-collapse: false;

@import 'contextual';

.#{$toast-name} {
  bottom: calc(var(#{$universal-margin-var}) / 2);
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

mark {
  position: relative;
  top: -0.25rem;
  left: 0.25rem;
}

/*
  Custom elements for contextual background elements, toasts and tooltips.
*/
$mark-secondary-name:            'secondary'; // Class name for secondary <mark> color variant.
$mark-secondary-back-color:      #d32f2f;     // Background color for secondary <mark> color variant.
@include make-mark-alt-color ($mark-secondary-name, $mark-secondary-back-color);

$mark-tertiary-name:            'tertiary';  // Class name for tertiary <mark> color variant.
$mark-tertiary-back-color:      #308732;     // Background color for tertiary <mark> color variant.
@include make-mark-alt-color ($mark-tertiary-name, $mark-tertiary-back-color);

$mark-tag-name:                 'tag';       // Class name, padding and border radius for tag <mark> size variant.
$mark-tag-padding:      calc(var(#{$universal-padding-var})/2) var(#{$universal-padding-var});
$mark-tag-border-radius:        1em;
@include make-mark-alt-size ($mark-tag-name, $mark-tag-padding, $mark-tag-border-radius);

// Website-specific styles
code, pre, kbd, code *, pre *, kbd *, code[class*="language-"], pre[class*="language-"] {
  font-family: Menlo, Consolas, monospace !important;
}
pre {
  border: 0.0625rem solid var(#{$secondary-border-color-var});
  border-radius: var(#{$universal-border-radius-var});
}
.group{
  position:relative;
  margin-top: 2em;
  margin-bottom: 1em
}
.search{
  font-size: 0.875rem;
  margin-top: -0.1em;
  display:block;
  width:100%;
  border:none;
  border-bottom: $__1px solid var(#{$nav-link-color-var});
}
.search:focus{
  outline:none
}
label#search-label{
  color:var(#{$nav-link-color-var});
  font-size: 1.125rem;
  font-weight:400;
  position:absolute;
  left: 0.3125rem;
  top: 0.625rem;
}
.search:focus ~ label#search-label,.search:valid ~ label#search-label{
  top: -1.25rem;
  font-size: 0.875rem;
  color:var(#{$nav-link-color-var});
}
label#menu-toggle {
  width: 3.4375rem;
}

header h1.logo {
  margin-top: -0.8rem;
  text-align:center;
  a {
  text-decoration:none;
  color: #111;
  }
}

header #title {
  position:relative;
  top: -1rem;
  @media screen and (max-width: 500px) { font-size: 1rem; display: block }
}

header h1 small {
  display:block;
  font-size: 0.875rem;
  color: #888;
  margin-top: -0.8rem;
  @media screen and (max-width: 768px) { font-size: 0.75rem; }
  @media screen and (max-width: 600px) { font-size: 0.625rem; }
  @media screen and (max-width: 500px) { font-size: 0.5rem; margin-top: -1.2rem; }
}

label#menu-toggle {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: 3.4375rem;
}

main {
  padding: 0;
}

:root {
  #{$collapse-label-back-color-var}:  $collapse-label-back-color;
  #{$collapse-label-fore-color-var}:  $collapse-label-fore-color;
  #{$collapse-label-hover-back-color-var}:  $collapse-label-hover-back-color;
  #{$collapse-selected-label-back-color-var}: $collapse-selected-label-back-color;
  #{$collapse-border-color-var}: $collapse-border-color;
  #{$collapse-content-back-color-var} : $collapse-content-back-color;
  #{$collapse-selected-label-border-color-var}: $collapse-selected-label-border-color;
}
label.#{$collapse-name} {
  width: 100%;
  display: inline-block;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.3s;
  color: var(#{$collapse-label-fore-color-var});
  background: var(#{$collapse-label-back-color-var});
  border: $__1px solid var(#{$collapse-border-color-var});
  padding: calc(1.5 * var(#{$universal-padding-var}));
  border-radius: var(#{$universal-border-radius-var});
  &:hover, &:focus {
    background: var(#{$collapse-label-hover-back-color-var});
  }
  + pre {
    box-sizing: border-box;
    height: 0;
    max-height: 1px;
    overflow: auto;
    margin: 0;
    border: 0;
    padding: 0;
    transition: max-height 0.3s;
  }
  &.toggled {
    background: var(#{$collapse-selected-label-back-color-var});
    border-bottom-color: var(#{$collapse-selected-label-border-color-var});
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    + pre {
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      position: relative;
      width: 100%;
      height: auto;
      border: $__1px solid var(#{$collapse-border-color-var});
      border-top: 0;
      padding: calc(2 * var(#{$universal-padding-var}));
      max-height: $collapse-content-max-height;
    }
  }
}

button.primary.clipboard-copy {
  width: 100%;
  margin-left: 0;
  > img {
    vertical-align: bottom;
  }
}

code[class*="language-"],
pre[class*="language-"] {
  color: #222;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.8;

  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;

  -webkit-hypens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

pre[class*="language-"] {
  padding: calc(2 * var(#{$universal-padding-var}));
  overflow: auto;
  margin: var(#{$universal-margin-var}) 0;
}


pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  background: #b3d4fc;
}

pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
  background: #b3d4fc;
}

:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #7a8490;
}

.token.punctuation {
  color: #666;
}

.namespace {
  opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.constant,
.token.symbol,
.token.deleted,
.token.function {
  color: #005cc5;
}


.token.number,
.token.class-name {
  color: #832ed2;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #067e36;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.atrule,
.token.attr-value,
.token.keyword {
  color: #d73a49;
}

.token.regex {
  color: #097cab;
}
.token.important,
.token.variable {
  color: #e90;
}

.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

button.scroll-to-top {
  border-radius: 100%;
  font-size: 1.5rem;
  line-height: 1;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  position: fixed;
  bottom: 1rem;
  right: 2rem;
  background: var(#{$back-color-var});
  box-shadow: 0 .25rem .25rem 0 rgba(0,0,0,0.125),0 .125rem .125rem -.125rem rgba(0,0,0,0.25);
  &:hover, &:focus {
    background: var(#{$secondary-back-color-var});
  }
}
